package com.ds.support;

import java.io.Serializable;
import java.util.ArrayList;
import org.lwjgl.util.vector.Vector3f;

// The message class defined to pass data between clients and server
public class GameInfo implements Serializable {
	// the list of all players' positions and their corresponding pictures of the car 
	private ArrayList<Vector3f> carPositions;
	// the list of all cars' speed
	private float[] speedList;
	// the list to indicate whether a car is conflicted 
	private boolean[] collisionStatus;
	// list to indicate which car the players are using
	private int carTypes[];
	// the list of all players' current loop
	private int[] loopList;
	// the list of all cars' current HP
	private float[] hpList;

	public GameInfo(ArrayList<Vector3f> carPositions, float[] speedList,
			boolean[] collisionStatus, int[] carTypes, int[] loopList,
			float[] hpList) {
		this.carPositions = carPositions;
		this.speedList = speedList;
		this.collisionStatus = collisionStatus;
		this.carTypes = carTypes;
		this.loopList = loopList;
		this.hpList = hpList;
	}

	public ArrayList<Vector3f> getCarPos() {
		return carPositions;
	}

	public float[] getSpeedList() {
		return speedList;
	}

	public boolean[] getCollisionStatus() {
		return collisionStatus;
	}

	public int[] getCarTypes() {
		return carTypes;
	}

	public int[] getLoopList() {
		return loopList;
	}
	
	public float[] getHpList() {
		return hpList;
	}

	public void setHpList(float[] hpList) {
		this.hpList = hpList;
	}
}